import {
	$http
} from '@escook/request-miniprogram'

export default {
	search_addr_book(data) { //获取地址薄
		return $http.get('/account/cargo_owner/info/search_addr_book', data)
	},
	get_vehicle_model_list(data) { //获取车辆类型列表
		return $http.get('/account/vehicle/get_vehicle_model_list', data)
	},

	save_addr_book(data) { //保存编辑地址
		return $http.put('/account/cargo_owner/info/save_addr_book', data)
	},
	del_addr_detail(id) { //删除地址
		return $http.get('/shipper/addressBook/addressRemove/'+id,)
	},

	addressAdd(data) { //新增地址
		return $http.post('/shipper/addressBook/addressAdd', data)
	},
	addressListVisible(data) { //地址可见
		return $http.get('/shipper/addressBook/addressListVisible', data)
	},

	get_addr_detail(id) { //获取地址详细信息
		return $http.get('/shipper/addressBook/addressInfo/' + id)
	},
	addressEdit(data) { //获取地址详细信息
		return $http.post('/shipper/addressBook/addressEdit', data)
	},
	addressRecent(data) { //查询近期地址
		return $http.post('/shipper/addressBook/addressRecent', data)
	},
	addressImport(data) { //导入地址
		return $http.post('/shipper/addressBook/addressImport', data)
	},
	commonLine_list(data) { //常用路线
		return $http.get('/shipper/commonLine/list', data)
	},
	
	insertLine(data) { //新增常用路线
		return $http.post('/shipper/commonLine/insertLine',data)
	},

	details(id) { //常用路线详情
		return $http.get('/shipper/commonLine/details/'+id)
	},
	
	updateLine(data) { //修改常用路线
		return $http.post('/shipper/commonLine/updateLine',data)
	},
	
	deleteLine(data) { //常用路线详情
		return $http.post('/shipper/commonLine/deleteLine',data)
	},
	
	queryWayBillCarType(data){
		return $http.post('/account/vehicleModelCategory/queryWayBillCarType',data);
	},
}